package com.small.nacos.config.server.service.notify;


import com.small.nacos.common.task.AbstractDelayTask;

public class NotifyTask extends AbstractDelayTask {

    /**
     * 配置id
     */
    private String dataId;

    /**
     * 分组
     */
    private String group;
    /**
     * 命名空间
     */
    private String tenant;

    /**
     * 最后更新时间
     */
    private long lastModified;

    /**
     * 失败次数
     */
    private int failCount = 0;

    public NotifyTask(String dataId, String group, String tenant, long lastModified) {
        this.dataId = dataId;
        this.group = group;
        this.tenant = tenant;
        this.lastModified = lastModified;
        setTaskInterval(3000L);
    }

    @Override
    public void merge(AbstractDelayTask abstractDelayTask) {

    }


    public String getDataId() {
        return dataId;
    }

    public void setDataId(String dataId) {
        this.dataId = dataId;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public int getFailCount() {
        return failCount;
    }

    public void setFailCount(int failCount) {
        this.failCount = failCount;
    }

    public long getLastModified() {
        return lastModified;
    }

    public void setLastModified(long lastModified) {
        this.lastModified = lastModified;
    }

    public String getTenant() {
        return tenant;
    }

    public void setTenant(String tenant) {
        this.tenant = tenant;
    }
}
